package software_construction.chapter04.d1_fileio.demo3;

import java.io.*;
import java.util.List;

public class FileDeSerializerTest {
    public static void main(String[] args) throws Exception {
        FileInputStream fileInputStream=new FileInputStream("D:\\untitled\\src\\software_construction\\chapter04\\d1_fileio\\demo3\\student.txt");
        ObjectInputStream objectInputStream=new ObjectInputStream(fileInputStream);
        List<Student> students=(List<Student>) objectInputStream.readObject();
        for(Student student:students){
            System.out.println(student);
        }
    }
}
